package org.example.mylogin.utils;

public class BaseContext {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    //往本地线程存值
    public static void set(String adminId) {
        threadLocal.set(adminId);
    }

    public static String get() {
        return threadLocal.get();
    }
}
